{% extends "popupbase.html" %}
{% block head %}
<script type="text/javascript">var DHTML_SUITE_THEME = 'zune';</script>
<script type="text/javascript" src="/ovim/media/js/dhtml-suite-for-applications.js"></script>
{% endblock %}

{% block content %}
{% if les %}
<table id="jbTable">
	<a id="popupclose" onmouseover="document.getElementById('DHTMLSuite_ajax_tooltipObj').style.display='none';"> Close </a>
	<thead>
		<tr>
			<td></td>
			<td>Date</td>
			<td>log</td>
		</tr>
	</thead>
	<tbody>
	{% for le in les %}
		<tr>
		{% ifequal le.loglevel 'INFO' %}
			<td><img src="/ovim/media/img/edit-find-replace.png"></td>
		{% endifequal %}
		{% ifequal le.loglevel 'WARN' %}
			<td><img src="/ovim/media/img/icon_alert.gif"/></td>
		{% endifequal %}
		{% ifequal le.loglevel 'CRIT' %}
			<td><img src="/ovim/media/img/icon_error.gif"/></td>
		{% endifequal %}
		{% ifequal le.loglevel 'DEBUG' %}
			<td><img src="/ovim/media/img/selector-search.gif"/></td>
		{% endifequal %}				
			<td>{{ le.date|date:"j/m/y H:i" }}</td>
			<td>{{ le.log }}</td>
		</tr>
	{% endfor %}
	</tbody>
</table>
<a id="popupclose" onmouseover="document.getElementById('DHTMLSuite_ajax_tooltipObj').style.display='none';"> Close </a>
{% else %}
<a id="popupclose" onmouseover="document.getElementById('DHTMLSuite_ajax_tooltipObj').style.display='none';"> Close </a>
<h3>No log found.</h3>
{% endif %}
{% endblock %}